﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Test.DAL.Abstracts.ApplicationFeature;
using Test.Domain.Entities;
using TianShu.Domain.Entities;
using TianShu.Domain.Repositories;
using TianShu.SqlSugarCore.Services;
using TianShu.SqlSugarCore.SqlSugarFactory;

namespace Test.DAL.ApplicationFeature
{
    public class ApplicationDalImpl : DalService, IApplicationDal
    {
        public IRepository<EAMApplicationEntity, Guid> _appRepository => LazyServiceProvider.LazyGetRequiredService<IRepository<EAMApplicationEntity, Guid>>();
        public ApplicationDalImpl()
        {

        }

        public async Task Insert(EAMApplicationEntity entity)
        {
            await _appRepository.InsertAsync(entity);
        }
    }
}
